|
Author |
Thread Statistics | Show CCP posts - 2 post(s) |

Dread Griffin
Blueprint Haus Blades of Grass
0
|
Posted - 2016.05.27 16:53:13 -
[1] - Quote
Thanks for this tool, it's very helpful!
I've successfully used EveAuth to get my access and refresh tokens. Next, I create the EveCrest object using my refresh token and encoded key. All great up to this point.
However, when I run GetRoot() on the crest object in authenticated mode it doesn't seem to include anything extra for the scopes I authenticated with. Maybe this is working as expected and i'm just not understanding.
I after reading about RESTful practices, I assumed the root would return additional endpoints if an access token was used. Is this not the case? |

Dread Griffin
Blueprint Haus Blades of Grass
0
|
Posted - 2016.05.30 05:56:06 -
[2] - Quote
Icahmura Hasaki wrote:Root is the same, unauthorized requests will be denied upon performing the request.
Ok, thanks for the reply. Then I guess I'm missing how I'm supposed to use EVELib to access endpoints requiring authentication. I thought we had to get the root and then navigate from there using querys and loads. |

Dread Griffin
Blueprint Haus Blades of Grass
0
|
Posted - 2016.06.01 18:50:46 -
[3] - Quote
In evelib/EveLib.EveCrest/Models/Resources/Region.cs there doesn't appear to be a datamember for 'marketOrdersAll'. I assume this means I can't use evelib to access bulk market orders yet?
Thanks in advance.
EDIT: I just read the post about the dynamic crest lib on the previous page. Maybe this will work instead. Still need to check it out. |

Dread Griffin
Blueprint Haus Blades of Grass
0
|
Posted - 2016.06.02 06:22:42 -
[4] - Quote
Icahmura Hasaki wrote:Dread Griffin wrote:In evelib/EveLib.EveCrest/Models/Resources/Region.cs there doesn't appear to be a datamember for 'marketOrdersAll'. I assume this means I can't use evelib to access bulk market orders yet?
Thanks in advance.
EDIT: I just read the post about the dynamic crest lib on the previous page. Maybe this will work instead. Still need to check it out. Oh, I thought "marketOrders" was the correct endpoint, and I hadn't even noticed "marketOrdersAll". I will try and fix this asap, but i'll probably be a week as I'm busy with exams. Funny how no one else has commented on this. But yes, this is exactly why I made dynamic crest, because it allows you to query any endpoint and retrieve any resource without the need for updates. Please let me know if you are having any issues with dynamic crest or need more examples of how to use it. GET requests should be easy to do.
I've managed to get all the market orders in The Forge using this:var theForgeMarketOrders = await(await(await(await crest.GetAsync(crest.Host)) .GetAsync(r => r.regions)) .GetAsync(a => a.First(o => o.id == 10000002))) .GetAsync(r => r.marketOrdersAll); However, I'm fairly new to C# and LINQ and wasn't really sure how to work with the returned object. I think i managed to hammer it into a list of objects i made with this:foreach (var marketOrder in theForgeMarketOrders) { MarketOrder temp = new MarketOrder(); temp.buy = marketOrder.buy; temp.issued = marketOrder.issued; temp.price = marketOrder.price; temp.volume = marketOrder.volume; temp.duration = marketOrder.duration; temp.id = marketOrder.id; temp.minVolume = marketOrder.minVolume; temp.volumeEntered = marketOrder.volumeEntered; temp.range = marketOrder.range; temp.stationID = marketOrder.stationID; temp.type = marketOrder.type; MarketOrders.Add(temp); }
I didn't have much time to work on it today, but I hope to hammer away some more tomorrow. |

Dread Griffin
Blueprint Haus Blades of Grass
0
|
Posted - 2016.06.02 19:40:38 -
[5] - Quote
It seems executing a foreach loop on your eZet.EveLib.DynamicCrest.Expando object works fine until the end when I get an exception for the object not containing a definition for 'next'. I've looked up ways to identify if an ExpandoObject contains a given method, but I don't think you can use them to control a foreach call.
I'm currently just catching and suppressing the exception and everything is going fine. I'm not sure if I need to be doing something different or if your object could end a foreach differently. |

Dread Griffin
Blueprint Haus Blades of Grass
0
|
Posted - 2016.06.05 22:08:11 -
[6] - Quote
Icahmura Hasaki wrote:Thanks for the feedback so far, greatly appreciated. How you are creating the list is fine, and intended. I assume you have defined the MarketOrder class, it isnt the EveCrest one?
I'll look into the exception you mentioned, that's not intended.
So far it looks like you've got it working, let me know if you have other issues! :)
Yes, I created that market order class. Everything seems to be working fine so far. |
|
|
|